package cn.javapulzzer.number;

public class JoyofHex {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
            String sHex=Long.toHexString(0x100000000L + 0xcafebabe);
			System.out.println(sHex);
			System.out.println(Long.parseLong(sHex,16));
			System.out.println();
			String stest=Long.toHexString(0xcafebabe);
			System.out.println((int)(char)(byte) -1);
			char x='X';
			int i=0;
			System.out.println(true? x:0);
			System.out.println(false? i:x);
			}
		 
	 
        
}
